<?php

namespace App\Http\Requests\QH;

use Illuminate\Foundation\Http\FormRequest;

class QHGroupBuyStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'type' => 'bail|required|int|in:1,2,3',
            'dataId' => 'bail|nullable|int',
            'groupBuyId' => 'bail|required|int'
        ];
    }
}
